
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="__HOME_CSS__/newdsn/css/jquery-ui.css">
<link rel="stylesheet" href="__HOME_CSS__/newdsn/css/jquery-ui.theme.css">
<link rel="stylesheet" href="__HOME_CSS__/newdsn/css/admin.css">
<script type="text/javascript" src="__HOME_JS__/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/laydate/laydate.min.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/dialog.js"></script>
<script type="text/javascript" src="__HOME_CSS__/newdsn/js/cash/admin_content.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/libs.js"></script>
<script type="text/javascript" src="__HOME_CSS__/newdsn/js/cash/common.js"></script>
<script type="text/javascript" src="__HOME_CSS__/newdsn/js/cash/index.js"></script>
<script type="text/javascript">var MIN_AMOUNT=200;</script>
<script type="text/javascript" src="__HOME_CSS__/newdsn/js/cash/draw.js"></script>
</head>
<body id="bodyid" class="skin_blue">
<div class="bannercontainer">
  <div class="banner">
    <div class="avatar"></div>
    <div class="text1">
      <script language="javaScript">
        now = new Date(), hour = now.getHours()
        if (hour < 6) {
          document.write("凌晨好")
        } else if (hour < 9) {
          document.write("早上好")
        } else if (hour < 12) {
          document.write("上午好")
        } else if (hour < 14) {
          document.write("中午好")
        } else if (hour < 17) {
          document.write("下午好")
        } else if (hour < 19) {
          document.write("傍晚好")
        } else if (hour < 22) {
          document.write("晚上好")
        } else {
          document.write("夜里好")
        }
        $(function() {
        //设置当前页菜单默认值
        var curLocation = location.href.split("/");
        var curPageName = curLocation.slice(curLocation.length-1, curLocation.length).toString(String).split(".").slice(0, 1).toString(String).toLowerCase().split("?")[0];
        var webMenu = $(".subnavigation div");
        switch(curPageName){
          case "":        webMenu.eq(0).addClass("subitmactive");webMenu.eq(3).addClass("arrow1");break;
          case "deposit":     webMenu.eq(0).addClass("subitmactive");webMenu.eq(3).addClass("arrow1");break;
          case "withdrawal":    webMenu.eq(1).addClass("subitmactive");webMenu.eq(3).addClass("arrow2");break;
          case "transfer":    webMenu.eq(2).addClass("subitmactive");webMenu.eq(3).addClass("arrow3");break;
        }
        })
      </script>
      , <span class="blue">{$info.member_name}</span>
    </div>
    <div class="text2">
      最后登录：<?php echo date('Y-m-d H:i:s',$info['last_login_time'])?><br> 
    </div>
    <div class="text3">欢迎来到金至尊娱乐，我们更专注彩票，博彩乐趣都在这里。</div>
    <div class="subnavigation">
      <div class="subitm" onClick="location.href='deposit'">充值</div>
      <div class="subitm subitmactive" onClick="location.href='withdrawal'">提款</div>
      <div class="subitm subitmlast" onClick="location.href='transfer'">交易记录</div>
      <div class="arrow1"></div>
    </div>

    <div class="showamount">
      <div class="saitm1 gradientbg">中心钱包</div>
      <div class="saitm2 gradientbg pink"><span class="balanceCount">{$info.member_money}</span> | <span class="freezeCount">{$info.member_f_money}</span></div>
      <div class="refresh" onclick="location.reload()"></div>

    </div>
  </div>
</div>
<script type="text/javascript" src="__HOME_CSS__/newdsn/js/cash/loadAccount.js"></script> <div class="rightpanel">
    <div class="contentcontainer">
      <div class="row">
        <div class="stepitm stepactive" style="z-index: 3;">
          <div class="stepnotxt">01 提交</div>
          <div class="hlfcircle hlfcircleactive"></div>
        </div>
        <div class="stepitm" style="z-index: 2;">
          <div class="stepnotxt">02 审核</div>
          <div class="hlfcircle"></div>
        </div>
        <div class="stepitm" style="z-index: 1;">
          <div class="stepnotxt">03 出款</div>
          <div class="hlfcircle"></div>
        </div>
        <div class="stepitm" style="z-index: 0;">
          <div class="stepnotxt">04 到账</div>
        </div>

      </div>
       <?php if($info['true_name']!=''){?>
	     <?php if($info['member_money']<200){?>
				<div class="row mt10">
				<a href="javascript:void(0);" class="tabnavi tabnaviactive">快速存款</a>
			</div>
			<div class="tabbox clearfix" style="display: block;">
				<div class="margincenter mt15 warningicon"></div>
				<div class="warningtxt">
					您的中心钱包余额尚未达到提款标准<br> 提款金额最少为200.00元
				</div>
				<div class="warningtxt">
					<input type="button" class="btnsubmit" id="btnAmountLink" value="快速存款">
				</div>
			</div>
		   <?php }elseif($info['bank_id']>0){?>
		   	<div class="row mt10">
        <a href="javascript:void(0);" class="tabnavi tabnaviactive">提款</a>
      </div>
	    <div class="tabbox clearfix subcontent" style="display: block;">
            
             
                          <div class="row">
                                    <div class="col1">提款金额：</div>
                                    <div class="col2"><input name="amount" id="drawamount" type="text" class="textbox2">
                                    <img src="__HOME_CSS__/newdsn/images/admin/warningsmallicon.jpg" class="mt4 ml10"/> <div class="pink mt4">请输入提款金额，最低金额200</div></div>
                          </div>
						   <div class="row">
                                    <div class="col1">银行卡：</div>
                                    <div class="col2">
									<div class="col_text"><?php echo $info['bank_name']?>:<?php echo substr($info['bank_num'],0,4)?>******<?php echo substr($info['bank_num'],-4)?></div>
									
									
                                    <div class=" mt4" style="padding-left:35px;"id="card_move">解除绑定</div>
								
									</div>
                          </div>
                          <div class="row">
                                    <div class="col1">备注：</div>
                                    <div class="col2"><input  id="remark" type="text" class="textbox3">
                               </div>
                          </div>
             
                          <div class="row mt15">
                                <div class="col1"></div>
                                <div class="col2">
                                
								 <input type="submit" class="btnsubmit" id="btnDraw" value="提交">
                                </div>
                            </div>
                      
                        </div>
		   <?php }else{?>
					<div class="row mt10">
        <a href="javascript:void(0);" class="tabnavi tabnaviactive">绑定银行卡</a>
      </div>
      <div class="tabbox clearfix" style="display: block;">
        <div id="card_h">
          <div class="margincenter mt15 warningicon"></div>
          <p class="warningtxt">添加一张银行卡开始提款吧</p>
          <div class="warningtxt">
            <img src="__HOME_CSS__/default/images/cash/addbankcard.jpg" width="214" height="112" alt="" />
          </div>
        </div>
        <div class="formpanel margintop20" id="card_s" style="display: none;">
          <div class="middlecontainer mt15">
            <div class="row">
              <div class="col1">选择银行：</div>
              <div class="col2_s"><select id="bankCode" class="select1">
  <option value="" selected="selected">请选择银行</option>
  <foreach name="list" item="vo">
        <option value="{$vo.id}">{$vo.name}</option>
     </foreach>
</select>
</div>
            </div>
            <div class="row">
              <div class="col1">持卡人姓名：</div>
              <div class="col2">
                <input type="text" class="textbox3 textbox2" value="<?php echo $info['true_name']?>" readonly>
              </div>
            </div>
            <div class="row">
              <div class="col1">银行卡号：</div>
              <div class="col2">
                <input type="text"oninput="inputAccount()" id="cardId" class="textbox3 textbox2">
              </div>
            </div>
            <div class="row">
              <div class="col1">开户网点：</div>
              <div class="col2">
                <input type="text" id="bankaddress" class="textbox3 textbox2">
              </div>
            </div>
            <div class="row">
              <div class="col1">&nbsp;</div>
              <div class="col2">
                <input type="submit" class="btnsubmit" id="btnCard" value="提交">
              </div>
            </div>
          </div>
        </div>
      </div>
		   <?php }?>
	      
        
	   <?php }else{?>
	 
	   <div class="row mt10">
				<a href="javascript:void(0);" class="tabnavi tabnaviactive">绑定真实姓名</a>
			</div>
			<div class="tabbox clearfix" style="display: block;">
				<div class="margincenter mt15 warningicon"></div>
				<div class="warningtxt">
					您的真实姓名尚未绑定<br> 真实姓名相关联银行卡姓名
				</div>
				<div class="warningtxt">
					<input type="button" class="btnsubmit userLink" value="绑定真实姓名">
				</div>
			</div>
			
			
	   <?php }?>
     </div>
  </div>
 <script>  
    var num = 0;  
    function inputAccount(){
        
      var str = $('#cardId').val();  
        
      var elem = document.getElementById("cardId");  
        
      console.log(elem);  
        
      if(str.length > num){  
          var c = str.replace(/\s/g,  "");   
            
          if(str != "" && c.length > 4 && c.length % 4 == 1){  
            $('#cardId').val(str.substring(0, str.length - 1)+ " " + str.substring(str.length - 1, str.length));  
                
          }  
      }  
        
 
        
  }  
  
    </script>
</body>
</html>